package com.misakyanls.examples;

public class ExceptionTest {
	@SuppressWarnings("serial")
	public class MyException extends Exception {
	}

	public class Person {
		public void go() throws Exception {
			throw new Exception();
		}
	}

	public class Me extends Person {
		public void go() throws Exception {
			throw new MyException();
		}
	}

	public static void main(String[] args) {
		try {
			ExceptionTest test = new ExceptionTest();
			Person person = test.new Me();
			person.go();
		} catch (Exception e) {
			System.out.println("Exception");
		}
	}
}
